package com.bw.sparksql1.job3

import org.apache.spark.sql.SparkSession

/**
  *
  *  读取hive的数据
  */
object Job11 {
    def main(args: Array[String]): Unit = {
      val spark = SparkSession.builder().appName("Spark HiveExample").enableHiveSupport().getOrCreate()
      spark.sql("show databases").show
    }
}